package com.itheima.sh.feign.fallback;

import com.itheima.sh.feign.UserFeignApi;
import com.itheima.sh.pojos.User;
import org.springframework.stereotype.Component;

/**
 * @author: 飞羽鸿蒙
 * @date: 2020/12/20 21:37
 */
@Component
public class UserFeignApiFallBack implements UserFeignApi {
    @Override
    public User queryById(String username) {

        User user = new User();
        user.setUsername(username);
        user.setName("暂停服务-UserFeignApiFallBack");

        return user;
    }
}
